<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<script type="text/html" id="photos-item-tpl">
    <li id="saved-image{id}">
        <input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
        <input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
               style="width: 200px;" title="图片名称">
        <img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
             onclick="imagePreviewDialog(this.src);">
        <a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>
        <a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
    </li>
</script>
<script type="text/html" id="files-item-tpl">
    <li id="saved-file{id}">
        <input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
        <input class="form-control" id="file-{id}-name" type="text" name="file_names[]" value="{name}"
               style="width: 200px;" title="文件名称">
        <a id="file-{id}-preview" href="{preview_url}" target="_blank">下载</a>
        <a href="javascript:uploadOne('文件上传','#file-{id}','file');">替换</a>
        <a href="javascript:(function(){$('#saved-file{id}').remove();})();">移除</a>
    </li>
</script>
</head>
<body>
<div class="wrap js-check-wrap">

    <eq name="status" value="1">
        <ul class="nav nav-tabs">
            <li> <a class="btn btn-default" href="#" onclick="javascript:history.go(-1);">{:lang('BACK')}</a></li>
        </ul>
        <br/>
    </eq>
    
    <ul class="nav nav-tabs">
         <li class="active"><a href="javascript:;" style="font-weight:bold;font-size: 18px;">客户公司基本信息</a></li>
        </ul>
    <br>
             
        <div class="row">
            <div class="col-md-12">
                <table class="table table-bordered" style="border: none;">
                    <tr>
                        <td width="100">公司名称：</td>
                        <td>
                            <label>{$result.company_name}</label>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">邮寄地址：</td>
                        <td>
                            <label>{$result.company_mail_address}</label>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" >联系方式：</td>
                        <td>
                            <label>{$result.company_mobile}</label>
                        </td>
                    </tr>
                    <tr>
                        <td width="100" >修改时间：</td>
                        <td>
                            <label>{:date('Y-m-d H:i:s',$result['update_time'])}</label>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">备注：</td>
                        <td>
                            {$result.company_desc}
                        </td>
                    </tr>
                  
                   
                </table>
               
               
            </div>

        </div>


        <div class="row">

            <div class="col-md-6">
                <table class="table table-bordered" style="border: none;text-align:center;">
                    <tr>
                        <th colspan="2" style="text-align:center;font-size:28px;font-weight: bold;"><b>联系人信息</b></th>
                    </tr>
                    <tr>
                        <td style="font-weight: bold;">ID</td>
                        <td style="font-weight: bold;">联系人姓名</td>
                    </tr>
                    
                    <foreach name="customer_result" item="vo" key='k'>
                        <tr>
                            <td>{$k+1}</td>
                            <td><a href="{:url('customer/detail')}?id={$vo.id}">{$vo.customer_name}</a></td>
                        </tr>
                    </foreach>
                    
                   
                </table>

                
            </div>

             <div class="col-md-6">
                <table class="table table-bordered" style="border: none;text-align:center;">
                    <tr>
                        <th colspan="2" style="text-align:center;font-size:28px;font-weight: bold;"><b>项目信息</b></th>
                    </tr>
                    
                    <tr>
                        <td style="font-weight: bold;">ID</td>
                        <td style="font-weight: bold;">项目名称</td>
                    </tr>
               
                    <foreach name='project_result' item='vo' key='k'>
                        <tr>
                            <td>{$k+1}</td>
                            <td><a href="{:url('project/detail')}?id={$vo.id}">{$vo.project_name}</a></td>
                        </tr>
                    </foreach>   
                </table>

                
            </div>
        </div>
 
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>

</body>
</html>
